<template>
  <div class="f-section">
    <div>
      <div class="f-sesstion-title" :class="sessionTitle">
        <slot name="title">
          <div class="f-sesstion-bar"></div>
          {{ title }}
        </slot>
      </div>
    </div>
    <div class="f-sesstion-body">
      <slot name="default"/>
    </div>
  </div>
</template>

<script>
export default {
  name: 'FSection',
  props: {
    title: {
      type: String,
      default: 'title'
    }
  },
  computed: {
    sessionTitle() {
      return {
        sessionTitlePrimary: true
      };
    },
  }
};
</script>

<style scoped>
.f-section {
  margin-bottom: 10px;
}

.f-sesstion-title {
  display: flex;
  align-items: center;
  border-radius: 4px;
  padding: 5px 0 5px 10px;
}

.sessionTitlePrimary {
  color: #47a2ff;
  background-color: #ecf5ff;
}

.f-sesstion-title .f-sesstion-bar {
  /*width: 5px;*/
  /*background: #409EFF;*/
  /*height: 40px;*/
  /*margin: 0 10px 0 20px;*/
}

.f-sesstion-body {
  margin-top: 10px;
}

</style>
